﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif 

// **********************************************************************
// Copyright (C) XM
// Author: 赵思佳
// Date: 2019-01-02
// Desc: 判断分辨率的菜单栏
// **********************************************************************
namespace SpaceDFramework
{
    public class ResolutionCheckEditor
    {
#if UNITY_EDITOR
        [MenuItem("SpaceD/屏幕宽高比判断  %F1", false, 3)]
        static void CallMenu()
        {
            var isLandscape = ResolutionCheck.GetIsLandscape();
            CommonUtil.Log(isLandscape ? "横屏" : "竖屏");
            float radio = ResolutionCheck.getRadio();
            CommonUtil.Log(radio);
            ResolutionCheck.Device device = ResolutionCheck.JudgeDevice();
            CommonUtil.Log(device);
        }
#endif
    }
}
